close all;clc;clear;
JK2     =   [6      7];
A_JK2   =   [12.5   9.2];
A_JK2_Err = [2.6    0.6];

JRb2     =   [5      4      13      14];
A_JRb2   =   [25.1   15.1   18.1    32.6];
A_JRb2_Err = [2.3    0.7    1.3     1.1];

h1 = figure('position', [0, 500, 400, 500]);
subplot(2,1,1)
bar(JK2, A_JK2, 'c');
hold on
errorbar(JK2, A_JK2, A_JK2_Err, 'sk', 'MarkerSize', 4,...
    'CapSize', 0, 'LineWidth', 1);
xlabel('J_{K2}');
ylabel('A_{JK2}');
title('Fitted amplitude for K_2');
xlim([0, 12]);
ylim([0, 18]);
hold off

subplot(2,1,2)
bar(JRb2, A_JRb2, 'c');
hold on
errorbar(JRb2, A_JRb2, A_JRb2_Err, 'sk', 'MarkerSize', 4,...
    'CapSize', 0, 'LineWidth', 1);
xlabel('J_{Rb2}');
ylabel('A_{JRb2}');
title('Fitted amplitude for Rb_2');
xlim([0, 19]);
ylim([0, 35]);
hold off

